<template>
    <div>
        <li>
                   <el-cascader :options="comparylist" v-model='search.companyId'  placeholder="选择公司"  filterable  clearable  change-on-select>
                 </el-cascader>
       </li>
    </div>
</template>
<script>
import bus from "./bus";
export default {
  data() {
    return {
      comparylist: [],

      search:{
            companyId:[]
      }
        
    };
  },
  mounted: function() {
    this.getCompany();
  },
  methods: {

    getCompany() {
      this.$axios
        .get("/ws-microservice-backstage/company/getCompanyTree", {
          params: {}
        })
        .then(response => {
          this.comparylist.push(response.data.data);
        })
        .catch(error => {});
    }
  }
};
</script>
<style >
</style>
